/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package controlador;

import javax.microedition.lcdui.Gauge;
import modelo.Conexion;

/**
 *
 * @author Guille
 */
public class Controlador {

    private Conexion conexion;

    public Controlador()
    {
        conexion = new Conexion();
    }

    public void crearDescarga(String url) throws Exception
    {
        conexion.crearDescarga(url);
    }

    public void comenzarDescarga(String ruta) throws Exception
    {
        conexion.iniciarDescargar(ruta);
    }

    public void setGauge(Gauge g)
    {
        conexion.setGauge(g);
    }

}
